<?php

namespace common\enums;

/**
 * Class WhetherEnum
 * @package common\enums
 * @author jianyan74 <751393839@qq.com>
 */
class WhetherEnum extends BaseEnum
{
    const ENABLED = 1;
    const DISABLED = 0;
    const Normal = 'Normal';
    const Early = 'Early';
    const Late = 'Late';
    const Outside = 'Outside';
    const SeriousLate = 'SeriousLate';
    const Absenteeism = 'Absenteeism';
    const NotSigned = 'NotSigned';
    const ATM = 'ATM';
    const BEACON = 'BEACON';
    const DING_ATM = 'DING_ATM';
    const USER = 'USER';
    const BOSS = 'BOSS';
    const APPROVE = 'APPROVE';
    const AUTO_CHECK = 'AUTO_CHECK';
    const SYSTEM = 'SYSTEM';
    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::ENABLED => '是',
            self::DISABLED => '否',
        ];
    }
    public static function getMep(): array
    {
        return [
            self::Normal => '正常',
            self::Early => '早退',
            self::Late => '迟到',
            self::Outside => '范围外',
            self::SeriousLate => '严重迟到',
            self::Absenteeism => '旷工迟到',
            self::NotSigned => '未打卡',
        ];
    }
    public static function getMcp(): array
    {
        return [
            self::Normal => '范围内',
            self::Outside => '范围外',
            self::NotSigned => '未打卡',
        ];
    }
    public static function getMbp(): array
    {
        return [
            self::ATM => '考勤机',
            self::BEACON => 'IBeacon',
            self::DING_ATM => '钉钉考勤机',
            self::USER => '用户打卡',
            self::BOSS => '老板改签',
            self::APPROVE => '审批系统',
            self::SYSTEM => '考勤系统',
            self::AUTO_CHECK => '自动打卡'
        ];
    }
}